@charset "utf-8";

@import "../variables";
@import "../../vendor/bootstrap-sass/stylesheets/bootstrap-variables";

.resources-results-filters {
  .form-control {
    display: inline-block;
    width: auto;
    margin-right: 1rem;
  }
}

.resources-results {
  position: relative;
  width: 100%;
  min-height: 360px;
  
  .resources-results-no-results {
    position: absolute;
    background: url(#{$img-path}/pages/resources-courses/resources-results-no-results.png);
    width: 340px;
    height: 190px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

#resources-courses-upload-button {
  position: absolute;
  right: 0;
  z-index: 5;
}

.btn.btn-primary.disabled {
  background: #9E9E9E;
  border: 1px solid #9E9E9E;
}

.resources-results-paginator {
  margin: 20px 0;
  position: relative;
  
  & > .center-block {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translate(-50%, 0);
  }
}

// pagination
.resources-results-paginator-pagination {
  .pagination {
    margin: 0;
    
    & > li > a {
      color: $black-nature;
    }
    
    & > li.pagination-prev,
    & > li.pagination-next {
      & > a  {
        color: $brand-primary;
      }
    }
    
    & > .active {
      & > a  {
        color: $white;
      }
    }
  }
}

.resources-results-paginator-total {
  display: inline-block;
  line-height: 30px;
  position: relative;
  top: -10px;
  margin: 0 2rem;
}

.resources-results-paginator-jump {
  
}

.resources-results-paginator-jump-input.form-control {
  margin-right: .5rem;
}

.resources-results-paginator-jump-button {
  margin-left: 2rem;
}

// ------- resources-results-list -------
.resources-results-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.resources-results-list-item {
  padding: 1rem 0;
  margin: 1rem 0;
  background: $white;
}

.resourses-resuls-list-item-icon {
  padding: 1rem;
  
  & > img {
    width: 50px;
  }
}

.resources-resuls-list-item-info {
  padding: .5rem 1rem;
  width: calc(100% - 222px);
}

.resources-results-list-item-info-items {
  color: #757575;
  
  & > span {
    margin-right: 1rem;
  }
}

.resources-results-list-item-operations {
  padding: 2rem 1rem;
  
  .dropdown-toggle {
    width: 10rem;
  }
  
  .dropdown-menu {
    min-width: 10rem;
    width: 10rem;
    text-align: center;
    
    a {
      &:hover {
        color: $brand-primary;
      }
    }
  }
  
  .btn-default {
    background-color: $white-nature;
  }
  
  .open>.btn-default.dropdown-toggle {
    &,
    &:focus,
    &:hover {
      color: $brand-primary;
      background-color: $white-nature;
      border-color: $brand-primary;
      box-shadow: none;
    }
  }
  
  .btn-group .dropdown-toggle:active {
    box-shadow: none;
  }
}

// modal dialog
.modal-dialog-upload-files {
  margin: 15px -1rem 0;
}
.modal-dialog-upload-files-item-wrapper {
  padding: .5rem;
}
.modal-dialog-upload-files-item {
  position: relative;
  padding: 1rem;
  border: 1px solid $border-color;
  height: 68px;
  
  .close {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
  }
  
  &.more {
    .text-large {
      display: inline-block;
      float: left;
      font-size: 110%;
      position: relative;
      top: 50%;
      transform: translate(0, -50%);
    }
  }
}
.modal-dialog-upload-files-item-icon {
  display: inline-block;
  float: left;
  width: 33px;
  height: 42px;
  margin-right: .5rem;
  
  .more & {
    width: 24px;
    height: 24px;
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
  }
}
.modal-dialog-upload-files-item-info {
  display: inline-block;
  width: calc(100% - 5rem);
  float: left;
}

.modal-dialog-upload-files-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
